package com.polelink.testcenter.util;

import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.text.SimpleDateFormat;
import java.util.Date;

public class LogUtil {
    private static final SimpleDateFormat LOG_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
    private static final String LOG_FORMAT = "[%s] [%s] %s%n";

    // 记录日志方法
    public static void recordLog(String level, String message, FileOutputStream logStream, String... extraParams) throws IOException {
//        String timestamp = LOG_DATE_FORMAT.format(new Date());
//        String formattedMessage = String.format(LOG_FORMAT, timestamp, level, message);
//        logStream.write(formattedMessage.getBytes(StandardCharsets.UTF_8));
    }
}
